home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / DTML-SENDMAIL.STX < prev    next >
Encoding:
Text File  |  2000-10-12  |  1.8 KB  |  65 lines

  1. sendmail: Sends email with SMTP
  2.  
  3.     The 'sendmail' tag sends an email message using SMTP.
  4.  
  5.   Syntax
  6.  
  7.     'sendmail' tag syntax::
  8.  
  9.       <dtml sendmail>
  10.       </dtml-sendmail>
  11.  
  12.     The 'sendmail' tag is a block tag. It either requires a 'mailhost'
  13.     or a 'smtphost' argument, but not both. The tag block is sent as
  14.     an email message. The beginning of the block describes the email
  15.     headers. The headers are separated from the body by a blank
  16.     line. Alternately the 'To', 'From' and 'Subject' headers can be
  17.     set with tag arguments.
  18.  
  19.   Attributes
  20.  
  21.     mailhost -- The name of a Zope MailHost object
  22.     to use to send email. You cannot specify both a mailhost and a smtphost.
  23.  
  24.     smtphost -- The name of a SMTP server used to send email. You
  25.     cannot specify both a mailhost and a smtphost.
  26.  
  27.     port -- If the smtphost attribute is used, then the port attribute
  28.     is used to specify a port number to connect to. If not specified,
  29.     then port 25 will be used.
  30.  
  31.     mailto -- The recipient address or a list of recipient addresses
  32.     separated by commas. This can also be specified with the 'To' header.
  33.  
  34.     mailfrom -- The sender address. This can also be specified with
  35.     the 'From' header.
  36.  
  37.     subject -- The email subject. This can also be specified with the
  38.     'Subject' header.
  39.  
  40.   Examples
  41.  
  42.     Sending an email message using a Mail Host::
  43.  
  44.       <dtml-sendmail mailhost="mailhost">
  45.       To: <dtml-var recipient>
  46.       From: <dtml-var sender>
  47.       Subject: <dtml-var subject>
  48.  
  49.       Dear <dtml-var recipient>,
  50.  
  51.       You order number <dtml-var order_number> is ready.
  52.       Please pick it up at your soonest convenience.
  53.       </dtml-sendmail>
  54.  
  55.   See Also
  56.  
  57.     "RFC 821 (SMTP Protocol)":http://www.ietf.org/rfc/rfc0821.txt
  58.  
  59.     "mime tag":dtml-mime.stx
  60.  
  61.  
  62.  
  63.  
  64.  
  65.